<?php
 
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

//session_start();

class e404 extends CI_Controller {

    public function __construct() {
        parent::__construct();
        if ($this->session->userdata('logged_in_user')) {
            $this->logged_in = TRUE;
        } else {
            redirect('login/', 'refresh');
        }
        $this->load->model('Dao');
        $this->load->helper('date');
    }

    public function index() {
        die("404 :)");
        $data = array('user' => $this->session->userdata('logged_in_user'));
        $user = $data['user'];
        $data['title'] = 'Welcome to wfaces';
        $data['description'] = 'NONE';
        $data['keywords'] = 'Key, words, of, the, page';
        $data['view'] = 'v_chat2';
        $data['left_view'] = 'v_users';
        $data['h_view'] = 'header';
        $data['users'] = $this->Dao->findUsers($user->id);
        $data['notifsNumber'] = $this->Dao->findNotifsNbr($user->id);
        $this->load->view('templates/gridTemplate', $data);
    }

}

?>
